package com.springcloud.sc.ucpv5.client.commondata.idl.sj3;


/**
 * Generated from IDL struct "PlanInfo".
 *
 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
 * @version generated at 2015-5-5 15:10:14
 */

public final class PlanInfoHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanInfoHelper.id(),"PlanInfo",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("planId", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("editUser", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("name", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("desc", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("type", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)), null),new org.omg.CORBA.StructMember("level", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)), null),new org.omg.CORBA.StructMember("autoTrg", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("trgInfo", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("oprtUser", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("nodeId", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("operList", com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanOperListHelper.type(), null),new org.omg.CORBA.StructMember("state", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanInfo s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanInfo extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/client/idl/PlanInfo:1.0";
	}
	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanInfo read (final org.omg.CORBA.portable.InputStream in)
	{
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanInfo result = new com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanInfo();
		result.planId=in.read_string();
		result.editUser=in.read_string();
		result.name=in.read_string();
		result.desc=in.read_string();
		result.type=in.read_short();
		result.level=in.read_short();
		result.autoTrg=in.read_long();
		result.trgInfo=in.read_string();
		result.oprtUser=in.read_string();
		result.nodeId=in.read_string();
		result.operList = com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanOperListHelper.read(in);
		result.state=in.read_short();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanInfo s)
	{
		out.write_string(s.planId);
		out.write_string(s.editUser);
		out.write_string(s.name);
		out.write_string(s.desc);
		out.write_short(s.type);
		out.write_short(s.level);
		out.write_long(s.autoTrg);
		out.write_string(s.trgInfo);
		out.write_string(s.oprtUser);
		out.write_string(s.nodeId);
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.PlanOperListHelper.write(out,s.operList);
		out.write_short(s.state);
	}
}
